package com.gitee.lht.common.exception;

import lombok.Data;

/**
 *
 * @author  Eric
 * @date 2019-05-04
 * @version 1.0
 */
@Data
public class BaseException extends Exception {

    private static final long serialVersionUID = 1L;

    protected int code;

    protected String content;

    public BaseException() {
    }

    public BaseException(String message) {
        super(message);
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
    }

    public BaseException(Integer code, String content) {
        this.code = code;
        this.content = content;
    }

    public BaseException(String message, Integer code, String content) {
        super(message);
        this.code = code;
        this.content = content;
    }

    public BaseException(String message, Throwable cause, Integer code, String content) {
        super(message, cause);
        this.code = code;
        this.content = content;
    }

    public BaseException(Throwable cause, Integer code, String content) {
        super(cause);
        this.code = code;
        this.content = content;
    }

    public BaseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Integer code, String content) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
        this.content = content;
    }


}
